<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="../common.jsp"%>
<%@ page import="cn.firstsoft.firstframe.admin.PropertyFile"%>
<%@ page import="org.springside.core.Constants" %>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>管理控制台 - 环境设置 - 档案系统集成</title>
<%@ include file="/common/meta2.jsp"%>
<link href="../style.css" type="text/css" rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
	<table width="100%" align="center" >
		<TR>
			<TH class=listViewPaginationTdS1  align=left colSpan=4>
			设置档案系统集成结果
			</TH>
		</TR>	
		<tr>
			<td widht="100%">
<%
	String archives = request.getParameter("archives");
	if (archives == null ) archives = "false";
	String archives_ip = request.getParameter("archives_ip");
	if (archives_ip == null ) archives_ip = "";
	String archives_port = request.getParameter("archives_port");
	if (archives_port == null ) archives_port = "";
	String archives_context = request.getParameter("archives_context");
	if (archives_context == null ) archives_context = "";
	
	PropertyFile.writeProperties("firstframe.properties", "constant.archives", archives);
	PropertyFile.writeProperties("firstframe.properties", "constant.archives_ip", archives_ip);
	PropertyFile.writeProperties("firstframe.properties", "constant.archives_port", archives_port);
	PropertyFile.writeProperties("firstframe.properties", "constant.archives_context", archives_context);
	out.println("<br>完成修改文件：firstframe.properties");		
%>
<BR>
设置成功后，需要重新启动服务器！<a href="archive_set.jsp">返回设置页面</a>
			</td>
		</tr>
	</table>
</body>
</html>
